package entity;

public class Member {
    private Integer id;
    private String QQmember;
    private String Videomember;
    private String Musicmember;
    private String Lookmember;
    /*
    无参构造方法
     */
    public Member(){

    }
    /*
    对声明所有变量初始化(除了用户id)
     */
    public Member(String QQmember,String Videomember,String Musicmember,String Lookmember){
        this.QQmember=QQmember;
        this.Videomember=Videomember;
        this.Musicmember=Musicmember;
        this.Lookmember=Lookmember;
    }
    /*
    对所有变量进行初始化包括id
     */
    public Member(Integer id,String QQmember,String Videomember,String Musicmember,String Lookmember){
        this.id=id;
        this.QQmember=QQmember;
        this.Videomember=Videomember;
        this.Musicmember=Musicmember;
        this.Lookmember=Lookmember;
    }
    /*
    用get和set方法进行变量的初始化
     */
    public Integer getId(){
        return id;
    }
    public void setId(Integer id){
        this.id=id;
    }
    public String getQQmember(){
        return QQmember;
    }
    public void setQQmember(String QQmember){
        this.QQmember=QQmember;
    }
    public String getVideomember(){
        return Videomember;
    }
    public void setVideomember2(String Videomember){
        this.Videomember=Videomember;
    }
    public String getMusicMember(){
        return Musicmember;
    }
    public void setMusicmember(String Musicmember){
        this.Musicmember=Musicmember;
    }
    public String getLookmember(){
        return Lookmember;
    }
    public void setLookmember(String Lookmember){
        this.Lookmember=Lookmember;
    }
    /*
    重写tostring方法,返回办理的权益内容
     */
    public String toString(){
        return "{"+
                "id:"+id+
                ",QQ会员:"+QQmember+
                ",视频会员:"+Videomember+
                ",音乐会员:"+Musicmember+
                ",看点会员:"+Lookmember+
                "}\n";
    }
}
